package com.atguigu.b_filter;

import jakarta.servlet.*;

import java.io.IOException;

public class filter1  implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
          System.out.println("Servlet1");
         /*
           放行方法
           不写不放行
           写了放行
           不是递归调用
         */
        filterChain.doFilter(servletRequest,servletResponse);
    }
}


